package com.pmj.attendance_system.service.impl;

import com.pmj.attendance_system.entity.Punchclock;
import com.pmj.attendance_system.mapper.PunchclockMapper;
import com.pmj.attendance_system.service.IPunchclockService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 庞明杰
 * @since 2020-04-22
 */
@Service
@Transactional
public class PunchclockServiceImpl extends ServiceImpl<PunchclockMapper, Punchclock> implements IPunchclockService {

    @Autowired
    private PunchclockMapper punchclockMapper;
    @Override
    public int up_out(Punchclock punchClock) {
        return punchclockMapper.up_out(punchClock);
    }
    @Override
    public int add_in(Punchclock punchClock) {
        return punchclockMapper.add_in(punchClock);
    }
    @Override
    public Punchclock if_punchin(Punchclock punchClock) {
        return punchclockMapper.if_punchin(punchClock);
    }
    @Override
    public Punchclock if_punchout(Punchclock punchClock) {
        return punchclockMapper.if_punchout(punchClock);
    }
    @Override
    public int late_result(Punchclock punchClock) {
        return punchclockMapper.late_result(punchClock);
    }



}
